@extends('Admin.layouts.common')

@section('content')
    <div class="container">

        @if(count($errors))
            <div class="alert alert-danger">
                <ul>
                    @foreach($errors->all() as $err)
                        <li>{{ $err }}</li>
                    @endforeach
                </ul>
            </div>
        @endif

        <form method="post">
            {{ csrf_field() }}
            <div class="form-group required">
                <label class="control-label">银行名称</label>
                <input name="bankname" type="text" class="form-control" value="{{ old('bankname') ? old('bankname') : $data->bankname }}">
            </div>
            <div class="form-group required">
                <label class="control-label">单笔</label>
                <input name="once" type="text" class="form-control" value="{{ old('once') ? old('once') : $data->once }}">
            </div>
            <div class="form-group required">
                <label class="control-label">单日</label>
                <input name="day" type="text" class="form-control" value="{{ old('day') ? old('day') : $data->day }}">
            </div>
            <div class="form-group required">
                <label class="control-label">单月</label>
                <input name="month" type="text" class="form-control" value="{{ old('month') ? old('month') : $data->month }}">
            </div>
            <div class="form-group required">
                <label class="control-label">最小充值</label>
                <input name="min_recharge_amount" type="text" class="form-control" value="{{ old('min_recharge_amount') ? old('min_recharge_amount') : $data->min_recharge_amount }}">
            </div>
            <div class="form-group required">
                <label class="control-label">简介</label>
                <input name="describe" type="text" class="form-control" value="{{ old('describe') ? old('describe') : $data->describe }}">
            </div>
            <div class="form-group">
                <button class="btn btn-primary btn-block" type="submit">编辑</button>
            </div>
        </form>
    </div>
@endsection

@section('foot')
    <script src="{{ asset('libs/ckeditor/ckeditor.js') }}"></script>
    <script>var editor = CKEDITOR.replace('content');</script>
@endsection